/*
 * @Descripttion: 
 * @version: 
 * @Author: 
 * @Date: 2019-10-09 11:48:43
 */
export const home = {};
/**
 * 获取用户的列表
 * @param {*} res
 */
home.getServiceList = function (formatres) {
  if (formatres.data.code == 200) {
    let newContent = formatres.data.data.content.map((item, index) => {
      return {
        current: item.current,
        groupName: item.groupName,
        id: item.id,
        image: item.image,
        mode: item.mode,
        name: item.name,
        ports: item.ports,
        replicas: item.replicas,
        serviceId: item.serviceId,
        updated: item.updated,
        tableData: []
      }
    });
    formatres.data.data.content = newContent;
    return formatres;
  }
}
// home.getCheck = function (formatres) {
//   return {
//     ...formatres,
//     cc: 1111
//   }
// }
